<template>
  <div style="height: 100%; width: 100%; overflow: auto">
    <mavon-editor :value="value" @change="valueChange" />
  </div>
</template>

<script>
export default {
  name: "MarkdownEdit",
  data() {
    return {
      value: "# ddd",
    };
  },
  methods: {
    valueChange(value, render) {
      // value为输入的内容，render是markdown渲染之后的html代码
      console.log(value, render);
    },
  },
}
</script>

<style scoped>

</style>
